<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>添加类型</title>
    <!-- 引入Bootstrap CSS -->
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.2/css/bootstrap.min.css">
</head>
<body>
<div class="container mt-3">
    <h2>添加类型</h2>
    <form th:action="@{/articletype/save}" method="POST">
        <div class="mb-3">
            <label for="type" class="form-label">类型</label>
            <input type="text" class="form-control" id="type" name="type" placeholder="类型" required>
        </div>
        <button type="submit" class="btn btn-primary">保存</button>
        <a class="btn btn-secondary" th:href="@{/articletype/page?pageIndex=0}" role="button">取消</a>
		<!-- 返回首页的按钮 -->
		<a class="btn btn-primary" th:href="@{/root/index}" role="button">返回首页</a>
    </form>
</div>
<!-- 引入Bootstrap JS -->
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.2/js/bootstrap.bundle.min.js"></script>
</body>
</html>